﻿using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.ObjectModel;
using WpfDemo.Models;

namespace WpfDemo.Common
{
    public partial class MenuItemModel: ObservableObject
    {
        public string F_Id { get; set; }
       
        public string? F_Name { get; set; }


        public string? F_ParentId { get; set; }

        public string? F_Icon { get; set; }

        public string? F_TargetView { get; set; }

        public string? F_Code { get; set; }

        public bool? F_IsLastChild { get; set; }
        public bool? F_IsExpanded { get; set; }
        /// <summary>
        /// 是否禁用 0启用，1禁用
        /// </summary>
        public string? F_IsDisabled { get; set; }

        public MenuItemModel? F_Parent { get; set; }

        public int? F_Sort { get; set; }

        public bool? IsLastChild { get; set; }

        public string? F_Remark { get; set; }

        public DateTime? F_CreateTime { get; set; }

        public bool IsSelected { get; set; }

        public ObservableCollection<ItemCheck> Buttons { get; set; } = new ObservableCollection<ItemCheck>();

        public ObservableCollection<MenuItemModel> Children { get; set; } = new ObservableCollection<MenuItemModel>();
    }
}
